<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>员工信息Spring_MVC</title>
</head>
<body>
	<a href="<%=request.getContextPath()%>/employee/toAdd">添加</a>
	<table border="1">
		<tr>
			<th>编号</th>
			<th>姓名</th>
			<th>年龄</th>
			<th>薪资</th>
			<th>入职日期</th>
			<th>操作</th>
		</tr>
		<c:forEach items="${list}" var="em">
			<tr>
				<td>${em.id}</td>
				<td>${em.name}</td>
				<td>${em.age}</td>
				<td>${em.salary}</td>
				<td>${em.hireDate }</td>
				<td><a
					href="<%=request.getContextPath()%>/employee/toUpdate?id=${em.id}">修改</a>
					<a href="<%=request.getContextPath()%>/employee/delete?id=${em.id}">删除</a></td>
			</tr>
		</c:forEach>
	</table>
</body>
</html>